<html lang="en" xmlns:th="http://www.thymeleaf.org"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>用户管理</title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link rel="shortcut icon" data-th-href="@{/favicon.ico}">
    <link rel="stylesheet" data-th-href="@{/asserts/css/bootstrap.min.css}">
    <link rel="stylesheet" data-th-href="@{/asserts/css/font-awesome.css}" >
    <link rel="stylesheet" data-th-href="@{/asserts/css/animate.css}" >
    <link rel="stylesheet" data-th-href="@{/asserts/css/style.css}" >
    <link rel="stylesheet" data-th-href="@{/asserts/css/plugins/ztree/zTreeStyle.css}">
    <link rel="stylesheet" data-th-href="@{/asserts/css/plugins/bootstrap-table/bootstrap-table.min.css}">
    <link rel="stylesheet" data-th-href="@{/asserts/css/plugins/iCheck/custom.css}">
    <!-- Latest compiled and minified CSS -->
    <style>
        .form-control:focus,
        .single-line:focus {
            border-color: #0e9aef !important;
        }
        .checkbox-inline {
            line-height: 5px;
        }
    </style>
</head>
<body>
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>用户管理</h5>
                </div>
                <div class="ibox-content">
                    <div class="row row-lg">
                        <div class="col-sm-12">
                            <div class="row">
                                <div class="col-lg-2 col-sm-3">
                                    <div class="panel panel-default">
                                        <div class="panel-heading">组织机构</div>
                                        <div class="panel-body dept-tree">
                                            <ul id="deptTree" class="ztree"></ul>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-lg-10 col-sm-9">
                                    <div class="row">
                                        <div class="col-lg-10 col-sm-9">
                                            <div class="row">
                                                <div class="col-lg-4 col-sm-12">
                                                    <div class="input-group">
                                                        <div class="input-group-btn">
                                                            <button data-toggle="dropdown" class="btn btn-white dropdown-toggle" type="button" aria-expanded="false">用户名称
                                                            </button>
                                                        </div>
                                                        <input type="text" class="form-control" id="name" placeholder="帐号/姓名/手机号">
                                                    </div>
                                                </div>
                                                <div class="col-lg-4 col-sm-6">
                                                    <div class="input-group">
                                                        <div class="input-group-btn">
                                                            <button data-toggle="dropdown" class="btn btn-white dropdown-toggle" type="button">注册开始日期
                                                            </button>
                                                        </div>
                                                        <input type="text" class="form-control layer-date" onclick="laydate({istime: false, format: 'YYYY-MM-DD'})" id="beginTime">
                                                    </div>
                                                </div>
                                                <div class="col-lg-4 col-sm-6">
                                                    <div class="input-group">
                                                        <div class="input-group-btn">
                                                            <button data-toggle="dropdown" class="btn btn-white dropdown-toggle" type="button">注册结束日期
                                                            </button>
                                                        </div>
                                                        <input type="text" class="form-control layer-date" onclick="laydate({istime: false, format: 'YYYY-MM-DD'})" id="endTime">
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-lg-2 col-sm-3">
                                            <div class="row">
                                                <div class="col-lg-12 col-sm-12">
                                                    <button type="button" class="btn btn-primary " onclick="MgrUser.search()" id="">
                                                        <i class="fa fa-search"></i>&nbsp;搜索
                                                    </button>
                                                    <button type="button" class="btn btn-primary button-margin" onclick="MgrUser.resetSearch()" id="">
                                                        <i class="fa fa-trash"></i>&nbsp;重置
                                                    </button>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="hidden-xs" id="managerTableToolbar" role="group">
                                        <button type="button" class="btn btn-primary"
                                                shiro:hasPermission="user:add"  onclick="MgrUser.openAddMgr()">
                                            <i class="fa fa-plus"></i>&nbsp;添加
                                        </button>
                                        <button type="button" class="btn btn-primary button-margin"
                                                shiro:lackPermission="user:edit" onclick="MgrUser.openChangeUser()">
                                            <i class="fa fa-edit"></i>&nbsp;修改
                                        </button>
                                        <button type="button" class="btn btn-primary button-margin"
                                                shiro:lackPermission="user:delete" onclick="MgrUser.delMgrUser()">
                                            <i class="fa fa-remove"></i>&nbsp;删除
                                        </button>
                                        <button type="button" class="btn btn-primary button-margin"
                                                shiro:hasPermission="user:reset" onclick="MgrUser.resetPwd()">
                                            <i class="fa fa-refresh"></i>&nbsp;重置密码
                                        </button>
                                        <button type="button" class="btn btn-primary button-margin"
                                                shiro:hasPermission="user:freeze" onclick="MgrUser.freezeAccount()">
                                            <i class="fa fa-warning"></i>&nbsp;冻结
                                        </button>
                                        <button type="button" class="btn btn-primary button-margin"
                                                shiro:hasPermission="user:unfreeze" onclick="MgrUser.unfreeze()">
                                            <i class="fa fa-check-circle"></i>&nbsp;解除冻结
                                        </button>
                                        <button type="button" class="btn btn-primary button-margin"
                                                shiro:hasPermission="user:setRole"  onclick="MgrUser.roleAssign()">
                                            <i class="fa fa-user-secret"></i>&nbsp;角色分配
                                        </button>
                                    </div>
                                    <table id="managerTable" style="width: 100%"></table>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>
<script th:inline="javascript">
    var ctxPath = [[@{/}]];
</script>

<!-- 全局js -->
<script data-th-src="@{/webjars/jquery/3.3.1/jquery.min.js}"></script>

<!--自定义js-->
<script data-th-src="@{/asserts/js/modular/sys/user/user_list.js}"></script>
<script data-th-src="@{/asserts/js/common/Feng.js}"></script>
<script data-th-src="@{/asserts/js/common/bootstrap-table-object.js}"></script>
<script data-th-src="@{/asserts/js/common/ztree-object.js}"></script>
<script data-th-src="@{/asserts/js/common/ajax-object.js}"></script>

<!--第三方插件js-->
<script data-th-src="@{/asserts/js/plugins/bootstrap-table/bootstrap-table.min.js}"></script>
<script data-th-src="@{/asserts/js/plugins/validate/bootstrapValidator.min.js}"></script>
<script data-th-src="@{/asserts/js/plugins/layer/layer.min.js}"></script>
<script data-th-src="@{/asserts/js/plugins/layer/laydate/laydate.js}"></script>
<script data-th-src="@{/asserts/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js}"></script>
<script data-th-src="@{/asserts/js/plugins/ztree/jquery.ztree.all.min.js}"></script>

</html>
